﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandPattern.GeneralDemo
{
    public class ConcreteCommandTwo : Command
    {
        private Receiver receiver;

        public ConcreteCommandTwo(Receiver _receiver)
        {
            this.receiver = _receiver;
        }

        public override void execute()
        {
            this.receiver.doSomething();   
        }
    }
}
